package topo.dialog;

import java.awt.Container;
import javax.swing.JDialog;
import topo.data.NodeDevice;
import topo.table.ObjectTable;
import topo.table.ObjectTableModel;
import topo.table.ScrollTablePane;

public class ResourcesSearchDialog extends JDialog {
    public ObjectTableModel tableModel;
    public ObjectTable objectTable;
    ScrollTablePane scrollTablePane;

    public ResourcesSearchDialog(NodeDevice nodeDevice, ObjectTableModel tableModel) {
        setTitle(nodeDevice.getDisplayName() + "_" + nodeDevice.getIpAddress() + "的所有资源");
        setSize(800, 500);

        this.tableModel = tableModel;
        this.objectTable = new ObjectTable(tableModel);
        this.scrollTablePane = new ScrollTablePane(this.objectTable);
        getContentPane().add(this.scrollTablePane, "Center");
        setDefaultCloseOperation(2);
    }
}